package matchesexercise;

public class ReplaceAllDemo {
    public static void main(String[] args) {
        String line="abc123def456ghi";
        String replace=line.replaceAll("[0-9]+","#NUMBER#");
        System.out.println(replace);

    }
}
